﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Threading.Tasks;

namespace JXC.Core.Models
{
    /// <summary>
    /// 采购计划单明细文件
    /// </summary>
   public class PlanDetail
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { set; get; }//采购计划明细单号
        [ForeignKey("CaigouPlanId")]
        public Guid CaigouPlanId { set; get; }//采购计划单号

        [ForeignKey("CommodityInformationSheetId")]
        public Guid CommodityInformationSheetId { set; get; }//商品编码
        public int Quantity { set; get; }//数量
        public string Others { set; get; }//备注

        public CaigouPlan CaigouPlan { get; set; }
        public CommodityInformationSheet CommodityInformationSheet { get; set; }
    }
}
